<meta charset="UTF-8">
<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
session_start();

include("conn/conn.php");

$conn = prepare();

switch ($_POST['sex']){
case 1:
    $sex = '男';
    break;
case 2:
    $sex = '女';
    break;
default :
    break;
}
$age=$_POST['age'];
$tel=$_POST['tel'];
$reserved_info=$_POST['reserved_info'];

exectue_sql_statement($conn, "update Members set members_sex='$sex', members_age=$age, members_tel='$tel', reserved_information='$reserved_info' where members_name='".$_SESSION['username']."'");

echo"<script>alert('个人信息修改成功!');window.location.href='usercenter.php';</script>";

?>